<%--
    Document   : editarCategoria
    Created on : 18/09/2009, 16:00:19
    Author     : fabricio
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="../css/default.css" type="text/css" rel="stylesheet" >
        <link href="../css/style.css" type="text/css" rel="stylesheet" />
        <title>${titulo}</title>
    </head>
    <body>

        <div id="container">

        <!-- importa o header para a página -->
        <jsp:include page="../header.jsp" />
        <jsp:include page="../menuSuperior.jsp" />

        <div id="main">

            <div id="content">
                <form method="post" action="../FrontController?action=SalvarPostagem">
                    Título: <br />
                    <input type="text" name="titulo" /><br /><br />
                    Conteúdo:<br />
                    <input type="text" name="conteudo" /><br /><br />

                    Categoria:<br />
                    <select name="categoria" size="1">
                        <c:forEach items="${categorias}" var="cat" begin="0">
                            <option value="${cat.id}">${cat.categoria}</option>
                        </c:forEach>
                    </select><br /><br />

                    Status<br />
                    <select name="status" size="1">
                        <c:forEach items="${statuss}" var="stt" begin="0">
                            <option value="${stt.id}">${stt.status}</option>
                        </c:forEach>
                    </select><br /><br />
                </form>
            </div>
        </div>
        <div class="clear"></div>
        <div id="footer">
            <p>&copy; Trabalho 7o Per&iacute;odo<br /><a href="http://gregdev.net">Designed by Greg Smith</a></p>
        </div>
        <hr size="1px" />
    </body>
</html>

